1·If not NULL, increment the line counter.
如果不是NULL,则增加行计数器。
2·The cure for object loitering in this case is to null out the reference after popping it from the stack, as shown in the commented-out line of code in Listing 3.
修复这种情况下的对象游离的方法是,当对象从堆栈弹出之后,就消除它的引用,如清单3中注释掉的行所示。
3·Listing 8 lists the code that was modified in the source of the jfs_mount.c file to create a segmentation fault at line 109 by creating a null pointer exception.
清单8列出了jfs_mount . c文件的源代码中被修改过的代码,我们在代码中创建了一个空指针异常,从而使代码在第109行产生段错误。
4·The NOT NULL attribute of column Credit_Line in table ACCOUNT has to be dropped because some other account types have been added that do not have a credit line.
ACCOUNT 表中的 Credit_Line 列的 NOT NULL 属性必须删除,这是因为添加了没有信用行的其他账号类型。
5·In this example, if the Map on line 1 does not contain the person named "Bob," a null pointer exception will result on line 5 when the person is asked for his name.
在这个例子中,如果第1行的Map不包括一个名为“bob”的人,那么在第5行询问person的名字时就会出现null指针异常。
6·If this method returns void, no change is needed, but if it returns DataObject, change the last line from return null; to return input;.
如果这个方法返回void,则不需要任何更改;如果返回DataObject,则将最后一行从return null;更改为return input;。
7·Because FindBugs doesn't know if the map contains "Bob" or not, it will flag line 5 as a possible null pointer exception.
因为FindBugs不知道map是否包含“bob”,所以它将第5行标记为可能null指针异常。
8·A serial line (null-modem cable) connects the machines through their serial ports.
一条串行线(空调制解调器电缆)将通过机器的串口连接它们。
9·Therefore, if the collector runs before line //2 attaches a strong reference to the re-created object, the object is lost and wr.get() returns null.
因此,如果收集器在行 //2 在重新创建的对象上施加一个强引用之前运行,对象就会丢失, wr.get() 则返回 null 。
10·Line 7 gets the session key from the session if it's already present, else it would be null.
如果会话已存在,第7行代码将从会话中获取会话键,否则它将为null。